import http from '@/utils/request'

const API_PREFIX = '/web/reports'

const options = {
  ignoreCancelToken: false
}

export const createFilter = params =>
  http.post(`${API_PREFIX}/sys/quickFilter/save`, params)

export const deleteFilter = id =>
  http.delete(`${API_PREFIX}/sys/quickFilter/${id}/delete`)



export const fetchReportFilter = params => http.post(`${API_PREFIX}/sys/report/new-tag-list`, params, {}, options)

export const fetchBotFilter = params => http.post(`/web/bots/sys/bot/new-tag-list`, params, {}, options)
